package com.example.docmanagement.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 角色查询请求
 */
@Data
@Schema(description = "角色查询请求参数")
public class RoleQueryRequest {

    @Schema(description = "页码", example = "1", defaultValue = "1")
    private Integer page = 1;

    @Schema(description = "每页数量", example = "20", defaultValue = "20")
    private Integer pageSize = 20;

    @Schema(description = "关键字（名称或显示名）", example = "管理员")
    private String keyword;

    @Schema(description = "是否系统角色", example = "false")
    private Boolean systemRole;

    @Schema(description = "排序字段", allowableValues = {"createdAt", "sortOrder"}, defaultValue = "sortOrder")
    private String sortBy = "sortOrder";

    @Schema(description = "排序方向", allowableValues = {"asc", "desc"}, defaultValue = "asc")
    private String sortOrder = "asc";
}


